package com.macro.mall.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 仪表盘订单图表数据传输对象
 * Created by macro on 2023/6/15.
 */
@Data
public class DashboardOrderChartDTO {

    @ApiModelProperty("列名")
    private List<String> columns;

    @ApiModelProperty("行数据")
    private List<OrderChartData> rows;

    @Data
    public static class OrderChartData {
        @ApiModelProperty("日期")
        private String date;

        @ApiModelProperty("订单数量")
        private Integer orderCount;

        @ApiModelProperty("订单金额")
        private BigDecimal orderAmount;
    }
} 